Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Data Structures


Lines

A line is a straight segment in three-dimensional space defined by its two endpoints, with an optional set of attributes. (In addition, each vertex can have a set of attributes.) A line is defined by the TQ3LineData data type. See "Creating and Editing Lines," beginning on page 4-63 for a description of the routines you can use to create and edit lines. Figure 4-10 shows a line.

Figure 4-10 A line

typedef struct TQ3LineData {
   TQ3Vertex3D                vertices[2];
   TQ3AttributeSet            lineAttributeSet;
} TQ3LineData;
Field Description
vertices
An array of two vertices.
lineAttributeSet
A set of attributes for the line. The value in this field is NULL if no line attributes are defined.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996